﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QlrrPrintService.Common.Command
{
    public class PrintFont:PrintLocation
    {
        #region fileds

        private int _mm_to_dpi = Common.MM_TO_DPI;

        protected int Mm_to_dpi
        {
            get { return _mm_to_dpi; }
            set { _mm_to_dpi = value; }
        }

        protected int _fontheight = 4;

        /// <summary>
        /// ，旋轉角度，逆時鐘方向旋轉
        /// 0,90,180,270
        /// </summary>
        private int _rotation=0;

        /// <summary>
        /// 字體外形
        /// 0標準(Normal)
        /// 1斜體(Italic)
        /// 2粗體(Bold)
        /// 3粗斜體(Bold and Italic)
        /// </summary>
        private int _fontstyle = 2;

        /// <summary>
        /// 底線
        /// 0-> 無底線
        /// 1-> 加底線
        /// </summary>
        private int _fontunderline = 0;

        private string _content;
        /// <summary>
        /// 字體名稱
        /// </summary>
        private string _szFaceName = "黑体";

        #endregion

        #region 
        
        public new int X
        {
            get { return _x * _mm_to_dpi; }
            set { _x = value; }
        }

        public new int Y
        {
            get { return _y * _mm_to_dpi; }
            set { _y = value; }
        }
        

        public int Fontheight
        {
            get { return _fontheight*_mm_to_dpi; }
            set { _fontheight = value; }
        }

        

        public int Rotation
        {
            get { return _rotation; }
            set { _rotation = value; }
        }

        

        public int Fontstyle
        {
            get { return _fontstyle; }
            set { _fontstyle = value; }
        }

        

        public int Fontunderline
        {
            get { return _fontunderline; }
            set { _fontunderline = value; }
        }

        

        public string SzFaceName
        {
            get { return _szFaceName; }
            set { _szFaceName = value; }
        }

       

        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        #endregion


    }
}
